package com.qf.spring2202.springmybatis.dao;

import com.qf.spring2202.springmybatis.entity.User ;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

public interface UserDao {
    public User getUserById(Integer id);
    public User getUserByIdAndPassword(Integer id,String password);
    public User selectUserByIdAndPwd_map(Map values);
    public User selectUserByUserInfo(User user);
    public List<User> selectUsersByName(@Param("name") String name);
    public Integer deleteUserById(@Param("id") Integer id);
    public Integer updateUser(User user);
    public Integer insertUser(User user);
    public List<User> getAllUnPickedUsers();
    public void sleep();
}
